package com.ctshk.rpc.starvip.enums.transaction;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.starvip.enums
 * @Author: hef
 * @CreateTime: 2021-04-14 10:56
 * @Description: 星赏会-币种类型
 */
@Getter
@AllArgsConstructor
public enum StarVipCurrencyCode {
    CNY("CNY","人民币"),
    HKD("HKD","港币"),
    MOP("MOP","澳门元"),
    TWD("TWD","台币"),
    SGD("SGD","新加坡元"),
    USD("USD","美元"),
    CAD("CAD","加拿大元"),
    JPY("JPY","日元"),
    AUD("AUD","澳大利亚元"),
    EUR("EUR","欧元"),
    GBP("GBP","英镑"),
    KRW("KRW","韩国元"),
    RUB("RUB","卢布"),
    SEK("SEK","瑞典克朗"),
    THB("THB","泰国铢"),
    CHF("CHF","瑞士法郎"),
    DKK("DKK","丹麦克朗"),
    NOK("NOK","挪威克朗"),
    PHP("PHP","菲律宾比索"),
    NZD("NZD","新西兰元"),
    MYR("MYR","马来西亚元"),
    OTH("OTH","其他"),;
    private String code;
    private String name;

    public static StarVipCurrencyCode getByCode(String code) {
        StarVipCurrencyCode[] values = StarVipCurrencyCode.values();
        for (StarVipCurrencyCode value : values) {
            if(value.equals(code)) {
                return value;
            }
        }
        return null;
    }
}
